package com.rcloud.server.sealtalk.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @title: UserCollect
 * @projectName sealtalk-server
 * @description: TODO
 * @author xiaochaoge
 * @date 2021/6/1115:45
 */

/**
 * 用户收藏记录表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "user_collect")
public class UserCollect {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    private Integer id;

    /**
     * 显示标题
     */
    @Column(name = "`name`")
    private String name;

    /**
     * 收藏内容
     */
    @Column(name = "content")
    private String content;

    /**
     * 来自谁的收藏，如果是自己从添加页面添加，touid就是添加本人
     */
    @Column(name = "touid")
    private Integer touid;

    /**
     * 分类条件 1.文本, 2图片, 3视频, 4定位，5文件 6语音 7自定义
     */
    @Column(name = "`type`")
    private Integer type;

    /**
     * 收藏用户
     */
    @Column(name = "create_by")
    private Integer createBy;

    /**
     * 收藏日期
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新日期
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 是否常用语 0否 1是
     */
    @Column(name = "is_common_words")
    private Integer isCommonWords;
}